﻿using System;
using System.Collections.Generic;

namespace Monkey
{
    class Cartel : ElementoEscenario
    {
        Image cartel;
        int boton;
        int xmouse, ymouse;

         public Cartel()
        {
            ruta = "data/escenarios/pueblo/pueblo1elementos/cartel.png";
            cartel = new Image("data/escenarios/pueblo/pueblo1elementos/cartel.png");
            ancho = 25;
            alto = 41;
            x = 408;
            y = 248;
            xmouse = -1;
            ymouse = -1;
            nombre = "Cartel";
        }
        
        public override void Dibujar()
        {
           Hardware.DrawHiddenImage(cartel, x, y);
        }

        public override void Dar()
        {
            do
            {
                Hardware.WriteHiddenText("No creo que eso sea posible",
                    250, 210,
                    0xFF, 0xFF, 0x00,
                    sans18);
                Hardware.ShowHiddenScreen();
                boton = Hardware.ReadMouse( ref xmouse, ref ymouse);
            } while (boton != Hardware.MOUSE_LEFT_BUTTON);
        }

        public override void Tirar()
        {
            do
            {
                Hardware.WriteHiddenText("¿Para que serviria eso?",
                    250, 210,
                    0xFF, 0xFF, 0x00,
                    sans18);
                Hardware.ShowHiddenScreen();
                boton = Hardware.ReadMouse( ref xmouse, ref ymouse);
            } while (boton != Hardware.MOUSE_LEFT_BUTTON);
        }

        public override void Usar()
        {
            do
            {
                Hardware.WriteHiddenText("¿Que quieres que haga con eso?",
                    250, 210,
                    0xFF, 0xFF, 0x00,
                    sans18);
                Hardware.ShowHiddenScreen();
                boton = Hardware.ReadMouse( ref xmouse, ref ymouse);
            } while (boton != Hardware.MOUSE_LEFT_BUTTON);
        }

        public override void Abrir()
        {
            do
            {
                 Hardware.WriteHiddenText("Eso es imposible",
                    250, 210,
                    0xFF, 0xFF, 0x00,
                    sans18);
                 Hardware.ShowHiddenScreen();
                boton = Hardware.ReadMouse( ref xmouse, ref ymouse);
            } while (boton != Hardware.MOUSE_LEFT_BUTTON);
        }

        public override void Empujar()
        {
            do
            {
                Hardware.WriteHiddenText("No se mueve, esta bien sujeto",
                    250, 210,
                    0xFF, 0xFF, 0x00,
                    sans18);
                Hardware.ShowHiddenScreen();
                boton = Hardware.ReadMouse( ref xmouse, ref ymouse);
            } while (boton != Hardware.MOUSE_LEFT_BUTTON);
        }

        public override void Coger()
        {
            do
            {
                Hardware.WriteHiddenText("No creo que me haga falta",
                    250, 210,
                    0xFF, 0xFF, 0x00,
                    sans18);
                Hardware.ShowHiddenScreen();
                boton = Hardware.ReadMouse( ref xmouse, ref ymouse);
            } while (boton != Hardware.MOUSE_LEFT_BUTTON);
        }

        public override void Cerrar()
        {
            do
            {
                Hardware.WriteHiddenText("¿En que estas pensando?",
                    250, 210,
                    0xFF, 0xFF, 0x00,
                    sans18);
                Hardware.ShowHiddenScreen();
                boton = Hardware.ReadMouse( ref xmouse, ref ymouse);
             } while (boton != Hardware.MOUSE_LEFT_BUTTON);
        }

        public override void HablarA()
        {
            do
            {
                Hardware.WriteHiddenText("No creo que me vaya a contestar",
                    250, 210,
                    0xFF, 0xFF, 0x00,
                    sans18);
                Hardware.ShowHiddenScreen();
                boton = Hardware.ReadMouse( ref xmouse, ref ymouse);
            } while (boton != Hardware.MOUSE_LEFT_BUTTON);
        }

        public override void Mirar()
        {
            do
                {
                Hardware.WriteHiddenText("En el cartel pone: ",
                    250, 180,
                    0xFF, 0xFF, 0x00,
                    sans18);
                Hardware.WriteHiddenText("Bienvenido a Monkey Island",
                    250, 210,
                    0xFF, 0xFF, 0x00,
                    sans18);
                Hardware.ShowHiddenScreen();
                boton = Hardware.ReadMouse( ref xmouse, ref ymouse);
                } while (boton != Hardware.MOUSE_LEFT_BUTTON);
        }
    }
 }
